<%@ page import="org.ikastola.Guardian" %>



<div class="fieldcontain ${hasErrors(bean: guardianInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="guardian.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${guardianInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: guardianInstance, field: 'lastname', 'error')} required">
	<label for="lastname">
		<g:message code="guardian.lastname.label" default="Lastname" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="lastname" required="" value="${guardianInstance?.lastname}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: guardianInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="guardian.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${guardianInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: guardianInstance, field: 'mobile', 'error')} ">
	<label for="mobile">
		<g:message code="guardian.mobile.label" default="Mobile" />
		
	</label>
	<g:textField name="mobile" value="${guardianInstance?.mobile}"/>&nbsp;<input type="radio" name="prefer" value="mobile" checked="checked" /><label style="text-align:center;width: 7%;">Preferido</label>
</div>

<div class="fieldcontain ${hasErrors(bean: guardianInstance, field: 'officephone', 'error')} ">
	<label for="officephone">
		<g:message code="guardian.officephone.label" default="Officephone" />
		
	</label>
	<g:textField name="officephone" value="${guardianInstance?.officephone}"/>&nbsp;<input type="radio" name="prefer" value="office" /><label style="text-align:center;width: 7%;">Preferido</label>
</div>

<div class="fieldcontain ${hasErrors(bean: guardianInstance, field: 'housephone', 'error')} ">
	<label for="housephone">
		<g:message code="guardian.housephone.label" default="Housephone" /> 
		
	</label>
	<g:textField name="housephone" value="${guardianInstance?.housephone}"/>&nbsp;<input type="radio" name="prefer" value="home" /><label style="text-align:center;width: 7%;">Preferido</label>
</div>
<input type="hidden" name="st" value="${st}" />